import { reactive, toRefs } from "vue";

function HookNum() {
    const state = reactive({
        num: 2,
        addNum() {
            state.num++
        }
    })
    const refState = toRefs(state);
    return refState;
}
export default HookNum;